package net.xi.news.service;

import com.baomidou.mybatisplus.extension.service.IService;
import net.xi.news.pojo.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.transaction.annotation.Transactional;

import javax.lang.model.element.TypeElement;
import java.util.List;

public interface TypeService extends IService<Type> {





    //根据分类名得到分类
    Type getTypeByName(String name);

    @Transactional
        //更新分类
    Integer updateType(String id, Type type);

    //列出前？分类
    List<Type> typeTop(Integer size);



}
